wpf button to return to last window

56

wpf button to return to last window -

private void Window1_Click(object sender, RoutedEventArgs e)
{
    Hide();
    new Window1().ShowDialog();
    ShowDialog();
}

wpf button to return to last window -

private void btn_Cancel_Click(object sender, RoutedEventArgs e)
{
    DialogResult = false;
}

Comments

Submit
0 Comments